from datetime import datetime
from decimal import Decimal

from fastapi_users import schemas
from pydantic import BaseModel


class SalariesRead(BaseModel):
    id: int
    salary: float
    raising_data: datetime
    user_id: int

    class Config:
        orm_mode = True


class SalariesCreate(BaseModel):
    salary: float
    raising_data: datetime
    user_id: int
